package cn.cs.mapper;

import cn.cs.pojo.AccountDetail;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

@Mapper
public interface AccountDetailMapper {

	public List<AccountDetail> getAccountDetailByUserId(@Param(value = "userId") String userId)throws Exception;

	public List<AccountDetail> getAccountDetailInvoiceByUserId(@Param(value = "userId") String userId)throws Exception;

	public List<AccountDetail>	getAccountDetailListByMap(Map<String, Object> param)throws Exception;

	public Integer getAccountDetailCountByMap(Map<String, Object> param)throws Exception;

	public Integer insertAccountDetail(AccountDetail accountDetail)throws Exception;

	public Integer updateAccountDetail(AccountDetail accountDetail)throws Exception;

	public Integer deleteAccountDetailById(@Param(value = "id") Long id)throws Exception;

	//获取充值记录订单
	public Map<String, Object> getAccountDetailById(@Param(value = "id") String id)throws Exception;

	//支付成功修改充值订单状态
	public Integer updateAccountStatus(@Param(value = "id") String id, @Param(value = "newAmonut") Double newAmonut)throws Exception;

	public int updateAccountDetailByIds(String[] params)throws Exception;

}
